OPC Studio User's Guide and Reference
SubstituteEmptyStates Property



OpcLabs.EasyOpcUA Assembly > OpcLabs.EasyOpc.UA.DataAccess Namespace > UADiscreteItemNode<TValue,TAttribute> Class : SubstituteEmptyStates Property
Determines whether the empty strings are substituted for the purpose of CurrentState return value.
Syntax
'Declaration
 
Public Property SubstituteEmptyStates As Boolean
'Usage
 
Dim instance As UADiscreteItemNode(Of TValue,TAttribute)
Dim value As Boolean
 
instance.SubstituteEmptyStates = value
 
value = instance.SubstituteEmptyStates
public bool SubstituteEmptyStates {get; set;}
public:
property bool SubstituteEmptyStates {
   bool get();
   void set (    bool value);
}

Property Value

The default value of this property is True.

Remarks
The default value is true, causing the CurrentState possibly return values other than those provided by the OPC-UA server. The component author's opinion is that this is not the ideal behavior, but it is required by some of the OPC-UA compliance tests. This property has therefore been introduced to allow you to revert this behavior.
Requirements

Target Platforms: .NET Framework: Windows 10 (selected versions), Windows 11 (selected versions), Windows Server 2016, Windows Server 2022; .NET: Linux, macOS, Microsoft Windows

See Also